<?php

/******************************************
 * File:			engine.php
 * Version:			1.0.0
 * Last modified:	25/10/2009
 * Last modifier:	Hugo Lavigne
 *****************************************/

require_once ("data/path_admin.php");
require_once ("data/version.php");

session_start();
include_once ("../".$_SESSION['path_php']."/lib_imports.php");
include_once ("../".$_SESSION['path_core']."/libs.php");
load_libs();

//imports_css ('odt_frm_php.err');

if (!is_administrator(@$_SESSION['uid']))
{
	redirect("../login.php?err=2", 1);
	exit;
}

$_SESSION['page'] = get_page_name($_SERVER['SCRIPT_NAME']);
$_SESSION['current_path'] = $path_apps.$_SESSION['page'];
$_SESSION['template_admin'] = $watmp;

include_once ("$_SESSION[path_templates]/$watmp/design.php");

?>